package com.genesis.yunnanji.adapter;

import android.content.Context;
import android.support.annotation.Nullable;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.genesis.yunnanji.R;
import com.genesis.yunnanji.bean.HelpBean;

import java.util.List;

/**
 * 创建日期：2018/9/18 on 15:32
 * 作者:Kite
 * 描述:
 */
public class HelpAdapter extends BaseQuickAdapter<HelpBean.ResultBean.ListBean, BaseViewHolder> {

    private Context context;

    public HelpAdapter(Context context, @Nullable List<HelpBean.ResultBean.ListBean> data) {
        super(R.layout.item_help_web, data);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder helper, HelpBean.ResultBean.ListBean item) {
        helper.setText(R.id.tv_content, item.title);
    }
}
